package com.example.clublesson01.adapter

import com.bw.kf.lib_base.entity.TieCommentRecord
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.clublesson01.R

class CommentAdapter:BaseQuickAdapter<TieCommentRecord,BaseViewHolder>(R.layout.item_comment) {
    override fun convert(holder: BaseViewHolder, item: TieCommentRecord) {
        holder.setText(R.id.comment_username,item.create_name)
        holder.setText(R.id.comment_time,item.create_time)
        holder.setText(R.id.comment_content,item.content)
        holder.setText(R.id.comment_tv_love,"${item.like_number}")
    }
}